<?php
/** 
 * $Source: /cvsroot/pn-commerce/pn-commerce/pntemplates/plugins/function.pncGetSchemes.php,v $
 * $Author: landseer $
 * $Revision: 1.2 $
 * $Date: 2005/03/17 13:19:44 $
 *
 * Type: Function
 *
 * assignes the list of schemes to the variable
 * @param: assign - the name of the target variable, default is schemes
 */
function smarty_function_pncGetSchemes($params, &$smarty)
{
    extract($params);
    unset($params);
    
    pnModAPILoad('pncommerce','admin');
    $assign = (isset($assign)) ? $assign : 'schemes';
    $schemes = pnModAPIFunc('pncommerce','admin','schemeGet');
    $smarty->assign($assign,$schemes);
}
?>
